package com.baizhiedu.basic.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;

import java.util.concurrent.FutureTask;

/**
 * @Author: robert.song
 * @Date: Created in 2021/11/13
 */
@Slf4j
public class MyAspect {
    public void before() {
        System.out.println("---before enhance---");
    }

    public void afterReturning() {
        System.out.println("-----后置增强----");
    }

    public void around(ProceedingJoinPoint pjp) throws Throwable {
        System.out.println("-----环绕前置增强----");
        Object proceed = pjp.proceed();
        System.out.println("-------环绕后置增强--------");
    }
}
